﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SP.Domain.Model
{
    [Table("sp_UserTable")]
    public class UserTable
    {
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        [Required]
        [StringLength(20)]
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [Required, StringLength(100)]
        public string PassWord { get; set; }
        /// <summary>
        ///创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }=DateTime.Now;
        /// <summary>
        /// 用户状态
        /// </summary>
        public bool UserState { get; set; } = true;
        public bool Isdel { get; set; } = false;
    }
}
